package com.example.cainiao.p2;

public class Main {
    public static void main(String[] args) {
        String str = "this is Java";
        System.out.println(removeCharAt(str, 3));
    }

    public static String removeCharAt(String str, int index) {
        return str.substring(0, index) + str.substring(index + 1);
    }
}
